package org.jeecg.modules.wms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.wms.entity.FinishedGoodsInventoryLog;

import java.util.List;

/**
 * 成品库存变动记录Mapper接口
 */
public interface FinishedGoodsInventoryLogMapper extends BaseMapper<FinishedGoodsInventoryLog> {

    /**
     * 分页查询库存变动记录
     */
    IPage<FinishedGoodsInventoryLog> queryInventoryLogList(Page<FinishedGoodsInventoryLog> page, 
                                                          @Param("inventoryId") String inventoryId,
                                                          @Param("orderNo") String orderNo,
                                                          @Param("operationType") Integer operationType,
                                                          @Param("keyword") String keyword);

    /**
     * 查询指定库存的变动记录
     */
    List<FinishedGoodsInventoryLog> queryLogsByInventoryId(@Param("inventoryId") String inventoryId);
}
